﻿using System.Text.RegularExpressions;

namespace StockholmsStad.Windows.UI.Infrastructure.ValidationRules
{
    public class PhoneNumberValidationRule
    {
        public static bool IsValidPhoneNumber(string phoneNumber)
        {
            // TODO: regexp för telefonnummer
            const string pattern = @"^\d{3,}-\d{2,}-\d{4,}$";

            var regex = new Regex(pattern);

            return regex.IsMatch(phoneNumber);
        }
    }
}
